'use strict';

let
    koa = require('koa'),
    app = new koa(),
    port = 7777,
    middleWare = require('./tempMiddleware');

app.use(middleWare);

app.use(async (ctx, next) => {
    ctx.render('index.html', { name: 'David Tao' });
})


app.listen(port);
console.log(`http://localhost:${port}`);